home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 51
/
Amiga Format CD51 (2000-03-10)(Future Publishing)(GB)[!][issue 2000-04].iso
/
-in_the_mag-
/
pdselect
/
awnp
/
awnp-docs
/
demos
/
test_the_host.rx
< prev
next >
Wrap
Text File
|
2000-02-16
|
976b
|
60 lines
/*
Script to send some commands to the testhost
*/
options results
if ~show('L','rexxsupport.library') then
if ~addlib('rexxsupport.library',0,-30,0) then
exit(20)
if show('p','TESTHOST') then do
say
say "Sending command 'Date' ."
address TESTHOST date
if rc=0 then say result
else say rc
say
delay(100)
say "Sending command 'Author' ."
address TESTHOST Author
if rc=0 then say result
else say rc
say
delay(100)
say "Sending command 'add 1 2' ."
address TESTHOST add 1 2
if rc=0 then say result
else say rc
say
delay(100)
say "Sending command 'add 1' ."
address TESTHOST add 1
if rc=0 then say result
else say rc
say
delay(100)
say "Sending command 'add 123 456' ."
address TESTHOST add 123 456
if rc=0 then say result
else say rc
say
/*delay(100)
say "Sending command 'quit' ."
address TESTHOST quit
if rc=0 then say result
else say rc
say
*/
delay(200)
end
else do
say "Arexx Host 'TESTHOST' not found"
say " You must run 'Host.rx' before running this script"
end